<ion-content class="bg-color">

    <ion-list class="top-list">
        <button ion-item *ngIf="securityService.user">
            <ion-avatar item-left>
                <img src="images/avatar-ts-jessie.png" />
            </ion-avatar>
            {{securityService.user.userName}}
        </button>
        <button ion-item *ngIf="!securityService.user" (click)='goLogin()'>
            系统登录
            <ion-icon item-right ios="ios-arrow-dropright" 
                style="color:#488aff" md="md-arrow-dropright"></ion-icon>
        </button>
    </ion-list>

    <ion-list *ngIf="securityService.user">
        <button ion-item (click)='goPassword()'>
            修改密码
            <ion-icon item-right ios="ios-arrow-dropright" 
                style="color:#488aff" md="md-arrow-dropright"></ion-icon>
        </button>
    </ion-list>

    <ion-list>
      <button ion-item (click)='goSign()'>
        签到管理
        <ion-icon item-right ios="ios-arrow-dropright"
                  style="color:#488aff" md="md-arrow-dropright"></ion-icon>
      </button>
      <button ion-item (click)='goLeave()'>
        出差管理
        <ion-icon item-right ios="ios-arrow-dropright"
                  style="color:#488aff" md="md-arrow-dropright"></ion-icon>
      </button>
      <button ion-item (click)='goTrip()'>
        请假管理
        <ion-icon item-right ios="ios-arrow-dropright"
                  style="color:#488aff" md="md-arrow-dropright"></ion-icon>
      </button>
    </ion-list>

    <ion-list>
        <button ion-item>
            版本号
            <span item-end>V1.1</span>
        </button>
        <!--<button ion-item (click)='goAbout()'>
            关于我们
            <ion-icon item-right ios="ios-arrow-dropright" 
                style="color:#488aff" md="md-arrow-dropright"></ion-icon>
        </button>
        <button ion-item (click)='goHelp()'>
            系统帮助
            <ion-icon item-right ios="ios-arrow-dropright" 
                style="color:#488aff" md="md-arrow-dropright"></ion-icon>
        </button>-->
    </ion-list>

    <div style="text-align: center; margin-left: 30px; margin-right: 30px;margin-top: 30px;"
        *ngIf="securityService.user">
        <button ion-button block (click)='securityService.logout()'>
            退出登录
        </button>
    </div>

</ion-content>
